package com.company.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.management.controller.report.vo.UserReportRespVO;
import com.company.management.modal.entity.TReport;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

public interface TReportMapper extends BaseMapper<TReport> {
    List<UserReportRespVO> selectReportByUserId(@Param("startOfDay") LocalDateTime startOfDay,
                                                @Param("endOfDay") LocalDateTime endOfDay,
                                                @Param("reportType") Integer reportType,
                                                @Param("userId") Long userId);

    List<UserReportRespVO> selectReportByReceive(@Param("startOfDay") LocalDateTime startOfDay,
                                                 @Param("endOfDay") LocalDateTime endOfDay,
                                                 @Param("reportType") Integer reportType,
                                                 @Param("reportIdList") List<Long> reportIdList, @Param("userId") Long userId);
}
